package hy;

import hy.beans.Teacher;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class Day1TmpApplication {

    public static void main(String[] args) {
        ApplicationContext app = SpringApplication.run(Day1TmpApplication.class, args);
        for (String b : app.getBeanDefinitionNames()) {
            System.out.println(b);
        }
        System.out.println(app.getBean(Teacher.class));
    }

}
